﻿@model IPagedList<SmallBusinessKit.Models.NonEntities.PersonDto>

@foreach (var person in Model)
{
    <p class="shimTop15">
        <img src="~/Content/Images/@person.ImageUrl" class="photo-border photo-float-left photo2" />
        <h3>@person.FullName</h3>
        <cite>@person.Title</cite>
        <br/><br/>
        @person.Desc
    </p>

    <ul>
        <li>Phone: @person.Phone</li>
        <li>Fax: @person.Fax</li>
        <li>Email: <a href="mailto:@person.Email">@person.Email</a></li>
    </ul>
    <hr />
}

<div class="text-left">
    @Html.PagedListPager(@Model, page => Url.Action("OurEmployees", "People", new { page }), PagedListRenderOptions.EnableUnobtrusiveAjaxReplacing(new AjaxOptions() { HttpMethod = "GET", UpdateTargetId = "TargetDiv" }))
</div>